package com.teamin.config;

/**
 * 消息类型
 * 
 * @author 31484
 *
 */
public enum TaskMessageType {

	FINISH_TASK(1, "task_finish"),//完成任务
	NEW_TASK(2, "task_new"),//新建任务
	COMMENT_AT(103, "comment_at"),//@用户
	Task_DELETE(201, "task_delete"), //删除任务
	TASK_ASSIGNER(202, "task_assigner"), //执行者变更
	TASK_REMIND(203, "task_remind"); //任务提醒

	private final int type;

	private final String desc;

	TaskMessageType(int value, String message) {
		this.type =  value;
		this.desc = message;
	}

	/**
	 * Return the integer value of this status code.
	 */
	public int value() {
		return this.type;
	}

	/**
	 * Return the reason phrase of this status code.
	 */
	public String getMessage() {
		return this.desc;
	}
}
